<html>
<head><meta charset="utf-8"><title>SyntaxKind vs T! macro · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/SyntaxKind.20vs.20T!.20macro.html">SyntaxKind vs T! macro</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="222227480"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/SyntaxKind%20vs%20T%21%20macro/near/222227480" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Lukas Wirth <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/SyntaxKind.20vs.20T!.20macro.html#222227480">(Jan 10 2021 at 15:36)</a>:</h4>
<p>is there a preference regarding using, for example <code>SyntaxKind::TRUE_KW</code> vs <code>T![true]</code>? At least for keywords I think preferring the latter is better. This seems like something that should be listed in the style guide if it matters.</p>



<a name="222227492"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/SyntaxKind%20vs%20T%21%20macro/near/222227492" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/SyntaxKind.20vs.20T!.20macro.html#222227492">(Jan 10 2021 at 15:37)</a>:</h4>
<p>T! is always better</p>



<a name="222227836"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/SyntaxKind%20vs%20T%21%20macro/near/222227836" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/SyntaxKind.20vs.20T!.20macro.html#222227836">(Jan 10 2021 at 15:47)</a>:</h4>
<p>Oops, filed <a href="https://github.com/rust-analyzer/rust-analyzer/pull/7237">https://github.com/rust-analyzer/rust-analyzer/pull/7237</a></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>